package com.itheima.mysream;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class StreamDemo4 {
    public static void main(String[] args) throws IOException {
        //创建对象
        FileWriter fr = new FileWriter("myio\\a.txt");
        char[] chars = {'a','b','c'};
        fr.write(chars);
        //释放资源
        fr.close();
    }
}
